package com.snts.synchronization.garbage;

import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class TestStoredProcedure {

	public static void main(String[] args) throws ClassNotFoundException, SQLException{
		Class.forName("org.postgresql.Driver");
		Connection conn = DriverManager.getConnection("jdbc:postgresql://192.168.1.254:5432/rgenius", "postgres", "postgresql");
		
		PreparedStatement pstmt = conn.prepareStatement("select set_rest_id(?)");
		pstmt.setString(1, "b7eeb648-cb1f-11e1-bcd4-e368c89f81d9");
		pstmt.executeQuery();
	}

}
